package com.justech.eat.service.component.impl;

import com.justech.eat.entity.OrderDefaultSet;
import com.justech.eat.mapper.mysql.UserDefaultSetMapper;
import com.justech.eat.model.UserOrderDefaultSetDto;
import com.justech.eat.repository.OrderDefaultSetRepository;
import com.justech.eat.service.OrderDefaultSetService;
import com.justech.eat.service.component.OrderDefaultSupplier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @program: eat-service
 * @description: 默认的报餐设置供应商
 * @author: feifei.li
 * @create: 2020-06-11 15:01
 **/
@Component
public class DefaultOrderDefaultSupplier implements OrderDefaultSupplier {

    @Autowired
    OrderDefaultSetService orderDefaultSetService;
    @Autowired
    OrderDefaultSetRepository orderDefaultSetRepository;
    @Autowired
    UserDefaultSetMapper userDefaultSetMapper;

    @Override
    public List<UserOrderDefaultSetDto> getList() {
        return userDefaultSetMapper.findAllSetByInJob();
    }

    @Override
    public List<OrderDefaultSet> getList(String deptCode) {
        return null;
    }

    @Override
    public OrderDefaultSet getOrderDefaultSet(String jobNumber) {
        return null;
    }
}
